<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=utf-8"%>
<%@ taglib prefix="pm" uri="http://www.keystudio.com/tags/premission"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script>
function navTabAjax(json){
navTabAjaxDone(json);
navTab.reload();
}
function dialogAjax(json){
dialogAjaxDone(json);
navTab.reload();
}
</script>
</head>
<body>
<form id="pagerForm" method="post" action="user/history"><input
	type="hidden" name="pageNum" value="1" /> <input type="hidden"
	name="numPerPage" value="${loginHistory.everyPage }" />
<div class="pageHeader">
<div class="searchBar">
<table class="searchContent">
	<tr>
		<td><lable>登录名:</lable><input type="text" name="username"
			id="username" value="${loginHistory.username }" /></td>
		<td><label> 名称:</label><input type="text" name="name" id="name"
			value="${loginHistory.name }" /></td>
		<td><label> 登录时间从</label><input type="text" name="loginTimeS" readonly="true" class="date" dateFmt="yyyy-MM-dd HH:mm:ss"
			value="${loginHistory.loginTimeS }" /></td>
		<td><label>到</label><input type="text" name="loginTimeE" readonly="true" class="date" dateFmt="yyyy-MM-dd HH:mm:ss"
			value="${loginHistory.loginTimeE }" /></td>
	</tr>
</table>
<div class="subBar">
<ul>
	<li>
	<div class="buttonActive">
	<div class="buttonContent">
	<button type="submit">检索</button>
	</div>
	</div>
	</li>
</ul>
</div>
</div>
</form>
</div>
<div class="pageContent">
<table class="table" width="100%" layoutH="112">
	<thead>
		<tr>
			<th>登录名</th>
			<th>名称</th>
			<th>登录时间</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach items="${list}" var="item" varStatus="status">
			<tr>
				<td>${item.username }</td>
				<td>${item.name }</td>
				<td>${item.loginTime }</td>
			</tr>
		</c:forEach>
	</tbody>
</table>
<div class="panelBar">
<div class="pages">共${loginHistory.totalCount}条</span></div>
<div class="pagination" targetType="navTab"
	totalCount="${loginHistory.totalCount}" numPerPage="${loginHistory.everyPage }"
	pageNumShown="10" currentPage="${loginHistory.pageNum}"></div>
</div>
</div>
</body>
</html>